package top.xia17.plugins.fast.user.service;

import top.xia17.plugins.fast.common.database.jpa.extension.JpaService;
import top.xia17.plugins.fast.user.dao.entity.Menu;
import top.xia17.plugins.fast.user.model.dto.MenuDto;
import top.xia17.plugins.fast.user.model.resp.MenuVo;

import java.util.Collection;
import java.util.List;

/**
 * 菜单service
 *
 * @author xia17
 * @date 2022/1/17
 */
public interface MenuService extends JpaService<Menu, Long> {


    /**
     * 获取角色拥有的菜单
     *
     * @param roleIds 角色ID
     * @param mobile  是否移动端
     * @return /
     */
    List<MenuVo> getMenuTreeByRoles(Collection<Long> roleIds, Boolean mobile);

    /**
     * 获取
     *
     * @return /
     */
    List<MenuDto> getMenuTree();
}
